! function(e, t) {
	"object" == typeof exports && "undefined" != typeof module ? module.exports = t() : "function" == typeof define &&
		define.amd ? define(t) : (e = "undefined" != typeof globalThis ? globalThis : e || self).dayjs_plugin_calendar =
		t()
}(this, function() {
	"use strict";
	return function(e, t, n) {
		var a = "h:mm A",
			d = {
				lastDay: "[Yesterday at] " + a,
				sameDay: "[Today at] " + a,
				nextDay: "[Tomorrow at] " + a,
				nextWeek: "dddd [at] " + a,
				lastWeek: "[Last] dddd [at] " + a,
				sameElse: "MM/DD/YYYY"
			};
		t.prototype.calendar = function(e, t) {
			var t = t || this.$locale().calendar || d,
				e = n(e || void 0).startOf("d"),
				e = this.diff(e, "d", !0),
				a = "sameElse",
				e = e < -6 ? a : e < -1 ? "lastWeek" : e < 0 ? "lastDay" : e < 1 ? "sameDay" : e < 2 ?
				"nextDay" : e < 7 ? "nextWeek" : a,
				a = t[e] || d[e];
			return "function" == typeof a ? a.call(this, n()) : this.format(a)
		}
	}
});